{{ content() }}
<div id="dialog" title="Basic dialog" style="display: none;">
</div>
<section id="main">
    <div class="exchange_title">
        <h2>
            Giao dịch	
        </h2>
    </div>
    <div class="" style="margin: 20px auto; width: 1050px">
        {{form('id':'adminForm')}}        
        {{form.render('time')}}     
        <button class="button">Lọc</button>
        <div class="search">
            {{form.render('text')}} 
            <button class="button">Search Users</button>
        </div>
        <div class="fright_pagination">
            {{form.render('page')}}
            {{form.render('limit',['onchange':'adminForm.submit()'])}}
            {{form.render('orderby')}}
            {{elements.paginator(transactions,'adminForm')}}
        </div>      
        {{endform()}}
    </div>    
    <article class="manage_exchange module">
        <header>
            <h3 class="tabs_involved">Quản lý Giao dịch </h3>                       
        </header>
        <div class="tab_container">
            <div class="tab_content">
                <table class="tablesorter exchange_table" cellspacing="0"> 
                    <thead> 
                        <tr>                             
                            <th class="column1">Username</th>                                 
                            <th class="column2">Email</th>
                            <th class="column2">Money</th>
                            <th class="column3">Balance</th>                                 
                            <th class="column4">Exchange Type </th> 
                            <th class="column5">Date</th>                                                      
                        </tr>                       
                    </thead> 
                    <tbody>
                        {% for transaction in transactions.items %}
                        <tr>                            
                            <td>{{transaction.Username}}</td>     
                            <td>{{transaction.Email}}</td>                            
                            <td>{{transaction.money}}</td> 
                            <td>{{transaction.balance_change}}</td> 
                            <td>{{transaction.type}}</td> 
                            <td> {{transaction.date}}</td>                                                      
                        </tr> 
                        {% endfor %}

                    </tbody> 
                </table>
            </div><!-- end of #tab1 -->
        </div><!-- end of .tab_container -->
    </article><!-- end of content manager article --> 

</section>


